Pearson Edexcel · A-Level · Mathematics
Course version: 603/1499/0 · Version from Sept 2017
Decision Mathematics 2
Full specification wording
Allocation (assignment) problems - Paper 4D: Decision Mathematics 2: 2.2 Formulation of the Hungarian algorithm as a linear programming problem.
An assignment problem matches n workers to n jobs one-to-one, minimising total cost.
- Point 4 of 4
Study notes
From the teaching notes for this specification point.
The idea
An assignment problem matches n workers to n jobs one-to-one, minimising total cost. Its linear programming form uses n² decision variables xᵢⱼ, where xᵢⱼ = 1 when worker i takes job j and xᵢⱼ = 0 otherwise. The objective minimises ΣΣ cᵢⱼxᵢⱼ. Each worker is used once: for every i, Σⱼ xᵢⱼ = 1. Each job is filled once: for every j, Σᵢ xᵢⱼ = 1. All variables satisfy xᵢⱼ ≥ 0. This LP has an integral optimum, so its solution matches the Hungarian algorithm's assignment; a question may ask you to write the constraints, identify the objective or recognise why the LP and the algorithm agree.
What earns the marks
- Identifies xᵢⱼ as a 0–1 variable equal to 1 when worker i is assigned to job j and 0 otherwise.
- States the objective as minimising the total cost ΣΣ cᵢⱼxᵢⱼ over all worker–job pairs.
- Writes one constraint per worker, Σⱼ xᵢⱼ = 1, so each worker is assigned exactly once.
- Writes one constraint per job, Σᵢ xᵢⱼ = 1, so each job is filled exactly once.
- Explains that the LP relaxation has an integral optimal solution, so the LP optimum equals the Hungarian assignment.
Common mistakes and how to put them right
Writes the worker constraint with Σᵢ instead of Σⱼ.
Put it right: Sum over the job index j for each fixed worker i.
Omits the requirement that each job is filled exactly once.
Put it right: Add the Σᵢ xᵢⱼ = 1 constraints.
Treats xᵢⱼ as a continuous amount rather than a 0–1 indicator.
Put it right: Keep the binary interpretation of the decision variables.
Exam tips
- Set out the variable definition before writing the objective so the indices are unambiguous.
- Count the constraints: n worker equations plus n job equations for an n × n problem.
- Link the LP formulation back to the Hungarian algorithm so the equivalence is explicit.
Try the lesson
The start of the Allocation (assignment) problems - Paper 4D: Decision Mathematics 2: 2.2 Formulation of the Hungarian algorithm as a linear programming problem. lesson, made from teaching notes for this specification point.
Have a go first
An assignment problem has three workers and three jobs, with cost matrix given by rows (worker 1) 4, 1, 3; (worker 2) 2, 0, 5; (worker 3) 3, 2, 1. In the linear programming formulation, how many decision variables are required?
There is more to this lesson
The full lesson goes on to check your understanding and help you earn the marks. Create a free account to carry on, with your progress saved.
5 free practice questions every day · Free forever · No card required
Test your understanding of Allocation (assignment) problems - Paper 4D: Decision Mathematics 2: 2.2 Formulation of the Hungarian algorithm as a linear programming problem.
Active recall beats re-reading. Take an instant quiz now to test what you’ve learned and lock it into long-term memory.
5 free practice questions every day · Free forever · No card required